
<img id="ID-btn" src="imgs/Btn_01.png" onclick="download()">


<script src="./sap.min.js"></script>
<!--官网<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>-->


<script>
    setBtnShake('ID-btn'); //每两秒放大一下恢复
    function setBtnShake(btnId) {
		setInterval(()=>{
			gsap.to('#' + btnId, {
				scale: 1.1,
				duration: 0.3,
				ease: 'back.in',
				onComplete: () => {
					gsap.to('#' + btnId, { scale: 1, duration: 0.3, ease: 'back.out' });
				},
			});
		}, 2000,2000);
	}
</script>